import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
    {
        path: '/',
        name: 'index',
        component: () => import('../pages/index.vue'),
        redirect: '/chatroom',
    },
    {
        path: '/chatroom',
        name: 'chatroom',
        component: () => import('../pages/ChatRoom.vue')
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router